package com.itheima.springbootsecurity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.springbootsecurity.domain.User;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author faithwu
 * @since 2024-07-12
 */
public interface UserService extends IService<User> {

    User findByUsername(String username);

    String login(User user);

    boolean logout(HttpServletRequest request, HttpServletResponse response);
}
